<template>
  <div class="tzxq">
    <header class="bg-blue">
      <p>合计（元）</p>
      <div>￥8000.00</div>
    </header>
    <ul class="fee-info">
      <li>退租时间<i class="fr">{{'4500'}}元</i></li>
      <li>合约租期<i class="fr">{{'2017-09-02 14:23:00'}}元</i></li>
    </ul>
    <ul class="zuke-info">
      <li class="li-header">应退详情</li>
      <li>租金<i class="fr">{{'4500'}}元</i></li>
      <li>押金<i class="fr">{{'4500'}}元</i></li>
      <li>违约金<i class="fr">{{'4500'}}元</i></li>
      <li>服务费<i class="fr">{{'4500'}}元</i></li>
    </ul>
    <ul class="order-info">
      <li class="li-header">应缴详情</li>
      <li>违约金<i class="fr">{{'4500'}}元</i></li>
    </ul>
    <xdialog v-show="showDialog">
      <h3 class="hint-title">退租提示</h3>
      <p class="hint-txt">您确认要办理退租吗？</p>
      <ul class="hint-content">
        <li>应收金额<span class="fr">￥{{'1200.00'}}</span></li>
        <li>应缴金额：<span class="fr">￥{{'1200.00'}}</span></li>
        <li>实际应支付房东<span class="fr">￥{{'4500.00'}}</span></li>
      </ul>
      <div class="i-alert">
        <span class="btn-no" @click="showDialog = !showDialog">否</span><span class="btn-yes" @click="confirm">是</span>
      </div>
      <i class="close-x" @click="showDialog = !showDialog"></i>
    </xdialog>
    <div class="btn">
      <span class="cancel" @click="$router.go(-1)">取消退租申请</span><span class="send" @click="showDialog = !showDialog">发送退租申请</span>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'tui-zhu-xiang-qin',
    data () {
      return {
        showDialog: false
      }
    },
    methods: {
      confirm () {
        let data = {}
        this.$vux.toast.text('提交退租申请成功')
        this.showDialog = false
        // this.$router.go(-1)
        this.axiosPost(this.$api.tuzu, data).then(res => {
          if (res.code === '0000') {
            console.log(res)
          }
        })
      }
    }
  }
</script>
<style lang="less">
  .tzxq {

    header {
      height: 75px;
      background-color: #4790F4;
      color: white;
      padding: 0 18px;
      p {
        line-height: 36px;
        height: 26px;
        font-size: 15px;
      }
      div {
        font-size: 25px;
      }
    }
    .weui-cells {
      line-height: 48px;
      margin: 0;
      &::before, &::before {
        border: 0;
        border-bottom: 0;
      }
    }
    .order-house-info {
      border-bottom: 6px solid #F3F3F3;
    }
    .btn {
      margin-top: 45px;
		span {
	      background-color:#ff9600;
	      display: inline-block;
	      height: 45px;
	      line-height: 45px;
	      width:50%;
	      position: absolute;
	      bottom: 0;
	      color: white;
	      text-align: center;
	      margin-top: 50px;
	    }
	    span.cancel {
        left: 0;
	    	background: none;
	    	border-top: 1px solid #F3F3F3;
	    	color: #656565;
	    }
      span {
        right: 0;
      }
    }
    .weui-dialog {
      padding: 0;
      li {
        height: 40px;
        line-height: 40px;
        overflow: hidden;
      }
      .i-alert {
        height: 45px;
      }
      .btn-yes,.btn-no {
        background-color:#ff9600;
        display: inline-block;
        height: 45px;
        line-height: 45px;
        width:50%;
        position: absolute;
        bottom: 0;
        
        color: white;
        text-align: center;
        // margin-top: 50px;
      }
      .btn-yes {
        right: 0;
      }
      .btn-no {
        left: 0;
        background: none;
        border-top: 1px solid #F3F3F3;
        color: #656565;
      }
    }
    
    ul {
      border-bottom: 6px solid #F3F3F3;
      li {
      	padding: 0 18px;
      	box-sizing: border-box;
        height: 48px;
        line-height: 48px;
        border-bottom: 1px solid #F3F3F3;
        width: 100%;
        font-size: 15px;
        text-align: left;
        i {
          font-style: normal;
        }
        .fl {
          float: left;
          height: 20px;
          line-height: 20px;
          margin-top: 14px;
          text-align: center;
        }
        .o-num {
          display: inline-block;
          border-radius: 100%;
          border:1px solid black;
          width: 18px;
          height: 18px;
          margin-top: 15px;
          line-height:14px;
          font-size: 12px;
          box-sizing: border-box;
          padding: 0 0 3px 0;
          position: relative;

        } 
        .fr {
          float: right;
          color: #777777;
        }
      }
    .li-header {
    	padding: 0;
    	height: 60px;
    	line-height: 54px;
    	border: 0;
    	&::before {
    		content: '';
    		display: inline-block;
			width: 3px;
			position: relative;
			top: 1px;
			height: 14px;
			background-color: #ff9600;
			margin-right: 11px;
    	}

    }
    }
  }
</style>
